﻿using System.Web.Mvc;
using Zavand.Web.Mvc.Manana.SampleWebsite.Areas.Area1.Controllers.Default.Actions.Index;
using Zavand.Web.Mvc.Manana.SampleWebsite.Common;

// ReSharper disable CheckNamespace
namespace Zavand.Web.Mvc.Manana.SampleWebsite.Areas.Area1.Controllers.Default
// ReSharper restore CheckNamespace
{
    public partial class DefaultController
    {
        public const string ActionNameIndex = "Index";
        public ActionResult Index(Route r)
        {
            var m = new Model();
            m.SetupModel(this, r);
            var s = new MockStorage();
            int total;
            m.Users = s.GetUsers(m.Page,m.PageSize, out total);
            m.Total = total;
            return View(m);
        }
    }
}